<!DOCTYPE html>
<html>
	<head>
		<meta charset="{CHARSET}">
		<meta charset="UTF-8"/>
		<title></title>
	</head>
	<script type="text/javascript">
//		建立三级菜单,大概内容是模仿冒菜馆的菜单
//1.做新东西的时候脑子里面大概要有一个印象,每个部分的东西是什么类型,相互有什么关系,用什么去连接关系
//先建立荤菜,素菜,饮料三种一级菜单，形式是数组。三级每一级都是数组。数组可以是三维的。





       var yjcd = new Array('荤菜','素菜','饮料');
//
////     接下来对二级和三级提前做一个声明
       var erjcd =new Array();
       var sjcd =new Array();
//     建立荤菜,素菜，饮料的二级数组
       var hc =["牛肉","羊肉","鸡肉","海鲜"];
       var sc =["绿色菜","薯类","豆制品","腌菜"];
       var yl =["果汁","汽水","酒","奶类"];
//     现在建立对应的三级数组
       var nr =["和牛肉","沙朗牛排","牛板筋"];
       var yr =["东来顺","羊眼睛","炭烧羊肉"];
       var jr =["鸡大腿","鸡胸脯","鸡爪子"];
       var hx =["带鱼","基围虾","雪蟹"];
       
       var lsc = ["韭菜","大葱","皮牙子"];
       var sl  = ["紫薯","土豆","芋头"];
       var dzp = ["冻豆腐","油豆皮","豆芽"];
       var yc  = ["辣白菜","泡菜","酱萝卜"];
       
       var gz  = ["猕猴桃汁","苹果汁","菠萝汁"];
       var qs  = ["阔乐","写必","风大"];
       var jiu = ["威士忌","伏特加","朗姆"];
       var nai = ["驴奶","骆驼奶","蛤蟆奶"];
//     试一下能不能合并数组.
       var hc = [nr,yr,jr,hx];
       var sc = [lsc,sl,dzp,yc];
       var yl = [gz,qs,jiu,nai];
       var 1jcd = [hc,sc,yl];
       alert(yjcd[0][2][3]);
           
	</script>
	<body>
	</body>
</html>
